<template>
	<div id="app"  v-cloak>
		<keep-alive>
			<router-view ></router-view>
		</keep-alive>
	</div>
</template>

<script>
	import { mapActions, mapState } from 'vuex'
	export default {
        name: 'app',
		data() {
			return {
			}
		},
		computed: mapState([
			'appConfig',
		]),
		methods: {
			...mapActions([
				'setConfig',
			]),
			
		},
		created() {


		},
		mounted() {
					/*设置返回页面滚动条位置*/
			window.setScrollTop = function(data) {
				self.setScrollTop(data)
			}
			/*得到页面滚动条位置*/
			window.getScrollTop = function(type) {
				return self.scrollTop[type];
			}
			var self = this;
			window.backtrack = function() {
				if(self.$route.path == '/') {
					window.history.back(-1);
				} else {
					window.history.back(-1);
				}
			}
		}
	}
</script>

<style lang="scss">
	@import './styles/styles.scss';
	@import './styles/css.scss';
	@import "../static/font/iconfont.css";
</style>